﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HCQ2_Model.Data;

namespace HCQ2_Model.Pay
{
    /// <summary>
    /// PC，获取订单列表参数
    /// </summary>
    public class GetPcOrderListParams:IPage,IPayUser
    {
        /// <summary>
        /// 订单类别
        /// </summary>
        [Required(ErrorMessage = "订单类别不能为空")]
        [Range(0, 2, ErrorMessage = "订单类别值无效，只能：0(全部)、1(买入)、2(卖出)")]
        public Nullable<int> OrderType { get; set; }

        /// <summary>
        /// 关键字，模糊匹配以下字段：订单号、商品名称、购买人
        /// </summary>
        public string Search { get; set; }
        /// <summary>
        /// 产品类别：VRPPT=1； 创客=2；头记=3；校史馆=4
        /// </summary>
        public Nullable<int> ProType { get; set; }
        /// <summary>
        /// 购买期限；1-一个月/3-三个月/6-六个月/12-一年
        /// </summary>
        public Nullable<int> PurchasePeriod { get; set; }
        /// <summary>
        /// 付款方式；1金币、2微信、3支付宝
        /// </summary>
        public Nullable<int> PaymentMethod { get; set; }

        /// <summary>
        /// 订单状态；1等待买家付款、2买家已付款、4交易成功、5交易关闭、6退款中
        /// </summary>
        /// <remarks>
        /// 20191112;老谭说去掉3(卖家已确认)
        /// </remarks>
        public Nullable<int> OrderState { get; set; }
        /// <summary>
        /// 订单来源；pc、web、mobile、wechat
        /// </summary>
        public string OrderSource { get; set; }
        /// <summary>
        /// 起始下单时间
        /// </summary>
        public Nullable<DateTime> OrderCreateTimeStart { get; set; }
        /// <summary>
        /// 截止下单时间
        /// </summary>
        public Nullable<DateTime> OrderCreateTimeEnd { get; set; }
        public int page { get; set; }
        public int rows { get; set; }
        public string userid { get; set; }
    }
}
